[IA64] Fix an memory attribute issue.
authorIsaku Yamahata <yamahata@valinux.co.jp>
Thu, 30 Oct 2008 02:51:55 +0000 (11:51 +0900)
committerIsaku Yamahata <yamahata@valinux.co.jp>
Thu, 30 Oct 2008 02:51:55 +0000 (11:51 +0900)
We should ensure Qemu and Guest use same attribute for accessing
the VGA ram, otherwise, host may hang.
This patch fixes trivial typo in 18690:c19871b66cea.

Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
xen/arch/ia64/vmx/vtlb.c

index 9dda7af9c01dbefda53dcff7e05cb0b63fbeff7e..fa7ed2b7e0a996be7803e4fb1927e35a1c32faa1 100644 (file)
@@ -522,7 +522,7 @@ static u64 translate_phy_pte(VCPU *v, u64 pte, u64 itir, u64 va)
      * which is required by vga acceleration since qemu maps shared
      * vram buffer with WB.
      */
-    if (mfn_valid(maddr >> PAGE_SHIFT) && phy_pte.ma == VA_MATTR_NATPAGE)
+    if (mfn_valid(maddr >> PAGE_SHIFT) && phy_pte.ma != VA_MATTR_NATPAGE)
         phy_pte.ma = VA_MATTR_WB;
 
     maddr = ((maddr & _PAGE_PPN_MASK) & PAGE_MASK) | (paddr & ~PAGE_MASK);